package com.ge.modules.api.service;

import com.baomidou.mybatisplus.service.IService;
import com.ge.modules.entity.TbTechnicianToken;

import java.util.Map;

/**
 * Created by wuye on 2017/11/24.
 */
public interface TbTechnicianTokenService extends IService<TbTechnicianToken> {

    TbTechnicianToken queryByTechnicianId(Integer technicianId);

    TbTechnicianToken queryByToken(String token);

    /**
     * 生成token
     * @param technicianId  技师ID
     * @return        返回token相关信息
     */
    Map<String, Object> createToken(Integer technicianId);

    void deleteToken(TbTechnicianToken technicianToken);
}
